home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / db / esm-3.1 / esm-3 / usr / local / sm / src / diskproc / Makefile < prev    next >
Encoding:
Makefile  |  1996-05-05  |  1.9 KB  |  72 lines

  1. #
  2. #  $RCSfile: Makefile,v $  $Revision: 1.1.1.1 $  $Date: 1996/05/04 21:56:07 $
  3. #
  4. MODULE = diskproc
  5. PARENT= src
  6. PATHTOROOT=..
  7.  
  8. SPECIALINCLUDE = -I$(PATHTOROOT)/serverlib/include
  9. LOCALINCLUDE = -I./include
  10. LOCAL_FLAGS = -DDISKPROC_MAKE -DSERVER_MAKE
  11.  
  12. LIBS = $(PATHTOROOT)/common/libcommon.a
  13.  
  14. FILESO = readDiskMessage.o openLocalDisk.o readLocalDisk.o\
  15.          writeLocalDisk.o closeLocalDisk.o replyDiskMessage.o space.o main.o\
  16.          SM_Error.o initializeTrace.o fsyncLocalDisk.o\
  17.          catchSignals.o dumpLocalProfiling.o onexit.o
  18.  
  19. IMPORTED_FILESO=\
  20.          mutex.o testandset.o
  21.  
  22. FILESC = readDiskMessage.c openLocalDisk.c readLocalDisk.c\
  23.          writeLocalDisk.c closeLocalDisk.c replyDiskMessage.c space.c main.c\
  24.          SM_Error.c initializeTrace.c fsyncLocalDisk.c\
  25.          catchSignals.c dumpLocalProfiling.c onexit.c
  26.  
  27. MOD_WORKSPACE=include
  28. LOCALRCSFILES=
  29. COPIES=
  30. LINKS=
  31. EXECS=$(DISKRW)
  32.  
  33. LOCALCLEANFILES=
  34.  
  35. LITTLEMAKEFILE=
  36. MAKEFILES = Makefile makefile.subdir
  37.  
  38. #
  39. OTHERTAGS=
  40. # This (OTHERTAGS) must not include serverlib, or else 
  41. # we'll get into a loop making tags.  Instead, we just link
  42. # tags.all to serverlib, so that by putting 
  43. #    tags=tags tags.all tags.baseline
  44. # in our .exrc, we'll get everything.
  45. # Meanwhile, making tags in serverlib will make tags here, but that's 
  46. # ok.
  47.  
  48. include $(PATHTOROOT)/makefile.common
  49.  
  50. #
  51. # The dependency here must be on links, not $(LINKS).
  52. # links just makes the symbolic links; $(LINKS) makes their targets as well.
  53. #
  54. getbaseline:  links $(COPIES) include
  55.     @echo making $@ in $(MODULE)
  56.     -ln -s $(BASELINE)/$(PARENT)/$(MODULE)/tags .
  57.     -ln -s $(BASELINE)/$(PARENT)/$(MODULE)/$(DISKRW) . 
  58. #     don't mess with the library
  59.  
  60. baseline.mod: $(EXECS) $(LIBS)
  61.     @echo $@ is up to date.
  62.  
  63. $(EXECS): $(FILESO) $(IMPORTED_FILESO) $(LIBS)
  64.     $(CC) $(LDFLAGS) $(CFLAGS) $(FILESO) $(IMPORTED_FILESO) $(LIBS) -o $(DISKRW) 
  65.     @echo $(DISKRW) made.
  66.  
  67. $(IMPORTED_FILESO): true
  68.     @(cd $(PATHTOROOT)/serverlib/disk; $(MAKE) $@)
  69.     @cp $(PATHTOROOT)/serverlib/disk/$@ ./$@
  70.  
  71. include makefile.depend
  72.